import request from '@/utils/https'

export function getList(data: any) {
  return request<any[]>({
    url: '/listDaysOfHealthReport',
    method: 'post',
    data
  })
}

export function dateOfHealthReport(data: any) {
  return request<any[]>({
    url: '/dateOfHealthReport',
    method: 'post',
    data
  })
}

export function saveHealthReport(data: any) {
  return request<any[]>({
    url: '/saveHealthReport',
    method: 'post',
    data
  })
}

export function runData(data: any) {
  return request<any>({
    url: '/runData',
    method: 'post',
    data
  })
}

export const BLOOD_TYPE_OPTION = [
  { label: '无', value: '4' },
  { label: '空腹', value: '1' },
  { label: '随机', value: '2' },
  { label: '餐后2小时', value: '3' }
]

export const SLEEP_QUALITY = [
  { label: '很好', value: '1' },
  { label: '较好', value: '2' },
  { label: '一般', value: '5' },
  { label: '较差', value: '3' },
  { label: '很差', value: '4' }
]

export const SPORT_TYPE = [
  { label: '无', value: '1' },
  { label: '户外运动', value: '2' },
  { label: '户内运动', value: '3' }
]
export const SPORT_OPTION = [
  { label: '散步', value: '1' },
  { label: '广场舞', value: '2' },
  { label: '慢跑', value: '3' },
  { label: '游泳', value: '4' },
  { label: '乒乓球', value: '5' },
  { label: '太极拳', value: '6' },
  { label: '羽毛球', value: '7' },
  { label: '八段锦', value: '8' },
  { label: '其他', value: '9' }
]
export const SPORT_TIME = [
  { label: '0-0.5小时', value: '1' },
  { label: '0.5-1小时', value: '2' },
  { label: '1-1.5小时', value: '3' },
  { label: '1.5-2小时', value: '4' },
  { label: '2-2.5小时', value: '5' },
  { label: '其他', value: '6' }
]

export const CROWN_OPTIONS = [
  '未感染',
  '已感染',
  '不清楚'
]

export const LEGACY_OPTIONS = [
  '认知损害（如思维迟缓、注意力不集中、记忆力下降）',
  '嗅觉、味觉减退',
  '疲劳/乏力',
  '头痛',
  '失眠',
  '抑郁',
  '焦虑',
  '咳嗽',
  '呼吸困难',
  '脱发',
  '活动后呼吸急促',
  '耳鸣和听力下降',
  '食欲不振和体重下降',
  '胸痛/胸闷/胸部不适感',
  '无'
]
